package com.cloudbroker.bcs.common.t2sdk.adapter;

import com.hundsun.t2sdk.impl.util.AbstractLogAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class T2sdkLogAdapter extends AbstractLogAdapter {

	private static Logger LOG = LoggerFactory.getLogger(T2sdkLogAdapter.class);
	
	@Override
	public void export(String msg) {
		if (msg == null) {
			return;
		}
		if (msg.indexOf("sendHeartBeat") >= 0) {
			LOG.trace(msg);
		}
		else {
			if (LOG.isInfoEnabled()) {
				LOG.info(msg);
			}
		}
	}

}
